package cn.clx.ymcc.constants;

// 枚举类
public enum YmccExceptionError {


    // 服务器内部异常操作
    NOT_EMP_NAME("3001","参数不能为空"),
    EXCEPTION_REGISTER_TIME_ERROR("4001","我的60s呢"),
    EXCEPTION_REGISTER_COMPARISON_ERROR("4001","验证码输入错误，请重试"),
    EXCEPTION_REGISTER_TIME_OUT_ERROR("4001","验证码已过期，请重新获取"),
    EXCEPTION_REGISTER_REPEAT_ERROR("4001","已存在该用户，请直接登陆"),

    USER_PASSWOERD_NULL("5001","密码不能为空"),
    USER_SMSCODE_NULL("5001","短信验证码不能为空"),
    USER_SAVE_NOT("5001","保存登陆信息失败"),
    USER_INFO_ISBLACK("5001","GG，被拉黑了"),


    MESSAGESMS_IS_EXIST("6001","该用户已经在黑名单中"),
    MESSAGESMS_REMOVE_FAILE("6001","移除失败");

    // 状态码
    private final String code;

    // 提示语
    private final String message;

    YmccExceptionError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
